import Vue from "vue";
import App from "./App.vue";
import ElementUI from "element-ui";
import "./registerServiceWorker";
import "element-ui/lib/theme-chalk/index.css";
import router from "./router";
import store from "./store";
import "./globle.css";
import VueAMap from "vue-amap";

Vue.config.productionTip = false;
Vue.use(ElementUI);
Vue.use(VueAMap);
VueAMap.initAMapApiLoader({
  key: "ed863c1b5d69c3782397336031be2039",
  plugin: [
    "AMap.Autocomplete",
    "AMap.PlaceSearch",
    "AMap.Scale",
    "AMap.OverView",
    "AMap.ToolBar",
    "AMap.MapType",
    "AMap.PolyEditor",
    "AMap.CircleEditor",
    "AMap.MouseTool",
  ],
  // 默认高德 sdk 版本为 1.4.4
  v: "1.4.4",
});
new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
